package com.zc.study.thread.多线程第二章节.thread2_2_12;

public class Test {
    public static void main(String[] args) {
        ThreadUtils thread = new ThreadUtils();
        ThreadA aa = new ThreadA(thread);
        thread.setUserName("a");
        aa.start();
        try {
            aa.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        ThreadB b = new ThreadB(thread);
        thread.setUserName("b");
        b.start();
    }
}
